<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <meta charset="UTF-8">
  <title>编辑字典项</title>
  <link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap-4.6.2-dist/css/bootstrap.css">
</head>
<body style="padding: 20px">

<h2>编辑字典项</h2>

<form action="${pageContext.request.contextPath}/dictionary/update" method="post">

  <input type="hidden" name="id" value="${dictionaryItem.id}">

  <div class="form-group">
    <label for="name">字典项名称：</label>
    <input type="text" class="form-control" id="name" name="name" value="${dictionaryItem.name}" required>
  </div>

  <div class="form-group">
    <label for="value">字典项值：</label>
    <input type="text" class="form-control" id="value" name="value" value="${dictionaryItem.value}" required>
  </div>

  <div class="form-group">
    <label for="description">描述：</label>
    <input type="text" class="form-control" id="description" name="description" value="${dictionaryItem.description}">
  </div>

  <button type="submit" class="btn btn-primary">提交</button>
  <a href="${pageContext.request.contextPath}/dictionary/list" class="btn btn-secondary">返回</a>

</form>

</body>
</html>
